package com.borya.model.db;

/**
 * 商户信息
 * @author borya
 *
 */
public class Merchant {
public static final int STATUS_ACTIVED=0;
public static final int STATUS_INACTIVATED=1;
public static final int STATUS_HAS_DEVICE=2;
public static final int STATUS_UNDER_REVIEW=3;
	private int id;
	private String dealerId;
	//网点名称
	private String companyName;
	// 用户类型:对应tb_user_type表
	private int userTypeId;
	private String userTypeDesc;
	// 商户营业执照号
	private String businessLicence;
	private String address;
	//推广渠道
	private String popChannel;
	//总部推广渠道
	private String headPopChannel;
	private long createTime;
	private String devMac;
	// 商户类型  1 企业 2 私人
	private int merchantType;
	private int isSignAgreement;
	private long signTime;
	private String signPicture;
	// 签约合并的图片路径
	private String signMergePicture;
	//推广渠道名字
	private String popChannelName;
	//总部推广渠道名字
	private String headPopChannelName;
	// 会员积分
	private long creditNum;
	//保证金
	private Integer bond;
	private int status;
	private int standardStatus;//达标状态:1达标,2未达标
	private long standardTime;//达标时间
	private int merchant_attribute=1;//商户卖卡权限 1 : A 远特发展线	2 : B 联通发展线	3 : C A申请联通卡权限	4 : D B申请远特卡权限	
	private int attribute_status;//0无1权限申请中
	/***** extra ******/
	private String userTypeName;
	private String phone;
	private int flag;//商户是否被删除 -1注销
	private String bigScopes;//营运商；1远特，2联通，3移动，4电信;如：1,2远特+联通
	
	private String cityCode;
	private String storeAddress;
	private String superDealerId;
	private String superDealerName;
	private String bannerIds;//欢迎页
	//卡盟商户和远盟工号对应关系
	private String ymDepid;
	private String ymStaffno;
	private String merchantId;

	private int ytskStatus;
	private int sourceType;
	private int detailType;
	private String superInviteCode;
    private String period; // 身份证（商户营业执照）有效期
    private String userRegion; // 使用地区
    private String identityCard; // 身份证
    private String identityCardName; // 身份证姓名
    private String identityCardAddress; // 身份证地址
    private String headPicture;
    private String identifyPhotoHead; // 身份证头像照片地址(企业专用)
    private long registTime; // 激活时间
    private Integer livingStatus; // 活体识别状态：1无源：自己上传照片对比，2：不做活体识别，3有源：公安部调取对比

	public String getSuperInviteCode() {
		return superInviteCode;
	}

	public void setSuperInviteCode(String superInviteCode) {
		this.superInviteCode = superInviteCode;
	}

	public int getDetailType() {
		return detailType;
	}

	public void setDetailType(int detailType) {
		this.detailType = detailType;
	}

	public int getSourceType() {
		return sourceType;
	}

	public void setSourceType(int sourceType) {
		this.sourceType = sourceType;
	}

	public int getYtskStatus() {
		return ytskStatus;
	}

	public void setYtskStatus(int ytskStatus) {
		this.ytskStatus = ytskStatus;
	}

	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	public String getYmDepid() {
		return ymDepid;
	}
	public void setYmDepid(String ymDepid) {
		this.ymDepid = ymDepid;
	}
	public String getYmStaffno() {
		return ymStaffno;
	}
	public void setYmStaffno(String ymStaffno) {
		this.ymStaffno = ymStaffno;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getDealerId() {
		return dealerId;
	}
	public void setDealerId(String dealerId) {
		this.dealerId = dealerId;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public int getUserTypeId() {
		return userTypeId;
	}
	public void setUserTypeId(int userTypeId) {
		this.userTypeId = userTypeId;
	}
	public String getBusinessLicence() {
		return businessLicence;
	}
	public void setBusinessLicence(String businessLicence) {
		this.businessLicence = businessLicence;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPopChannel() {
		return popChannel;
	}
	public void setPopChannel(String popChannel) {
		this.popChannel = popChannel;
	}
	public String getHeadPopChannel() {
		return headPopChannel;
	}
	public void setHeadPopChannel(String headPopChannel) {
		this.headPopChannel = headPopChannel;
	}
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	public String getDevMac() {
		return devMac;
	}
	public void setDevMac(String devMac) {
		this.devMac = devMac;
	}
	public int getMerchantType() {
		return merchantType;
	}
	public void setMerchantType(int merchantType) {
		this.merchantType = merchantType;
	}
	public int getIsSignAgreement() {
		return isSignAgreement;
	}
	public void setIsSignAgreement(int isSignAgreement) {
		this.isSignAgreement = isSignAgreement;
	}
	public long getSignTime() {
		return signTime;
	}
	public void setSignTime(long signTime) {
		this.signTime = signTime;
	}
	public String getSignPicture() {
		return signPicture;
	}
	public void setSignPicture(String signPicture) {
		this.signPicture = signPicture;
	}
	public String getUserTypeName() {
		return userTypeName;
	}
	public void setUserTypeName(String userTypeName) {
		this.userTypeName = userTypeName;
	}
	public String getPopChannelName() {
		return popChannelName;
	}
	public void setPopChannelName(String popChannelName) {
		this.popChannelName = popChannelName;
	}
	public String getHeadPopChannelName() {
		return headPopChannelName;
	}
	public void setHeadPopChannelName(String headPopChannelName) {
		this.headPopChannelName = headPopChannelName;
	}
	public long getCreditNum() {
		return creditNum;
	}
	public void setCreditNum(long creditNum) {
		this.creditNum = creditNum;
	}
	public String getSignMergePicture() {
		return signMergePicture;
	}
	public void setSignMergePicture(String signMergePicture) {
		this.signMergePicture = signMergePicture;
	}
	public Integer getBond() {
		return bond;
	}
	public void setBond(Integer bond) {
		this.bond = bond;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public int getStandardStatus() {
		return standardStatus;
	}
	public void setStandardStatus(int standardStatus) {
		this.standardStatus = standardStatus;
	}
	public long getStandardTime() {
		return standardTime;
	}
	public void setStandardTime(long standardtime) {
		this.standardTime = standardtime;
	}

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }

    public String getUserRegion() {
        return userRegion;
    }

    public void setUserRegion(String userRegion) {
        this.userRegion = userRegion;
    }

    public String getIdentityCard() {
        return identityCard;
    }

    public void setIdentityCard(String identityCard) {
        this.identityCard = identityCard;
    }

    public String getIdentityCardName() {
        return identityCardName;
    }

    public void setIdentityCardName(String identityCardName) {
        this.identityCardName = identityCardName;
    }

    public String getIdentityCardAddress() {
        return identityCardAddress;
    }

    public void setIdentityCardAddress(String identityCardAddress) {
        this.identityCardAddress = identityCardAddress;
    }

    public String getHeadPicture() {
        return headPicture;
    }

    public void setHeadPicture(String headPicture) {
        this.headPicture = headPicture;
    }

    public String getIdentifyPhotoHead() {
        return identifyPhotoHead;
    }

    public void setIdentifyPhotoHead(String identifyPhotoHead) {
        this.identifyPhotoHead = identifyPhotoHead;
    }

    public Integer getLivingStatus() {
        return livingStatus;
    }

    public void setLivingStatus(Integer livingStatus) {
        this.livingStatus = livingStatus;
    }

    public String toString() {
		return "[id=" + id + ", dealerId=" + dealerId
				+ ", companyName=" + companyName + ", userTypeId=" + userTypeId
				+ ", businessLicence=" + businessLicence + ", address="
				+ address + ", popChannel=" + popChannel + ", headPopChannel="
				+ headPopChannel + ", createTime=" + createTime + ", devMac="
				+ devMac + ", merchantType=" + merchantType
				+ ", isSignAgreement=" + isSignAgreement + ", signTime="
				+ signTime + ", signPicture=" + signPicture
				+ ", signMergePicture=" + signMergePicture
				+ ", popChannelName=" + popChannelName
				+ ", headPopChannelName=" + headPopChannelName + ", creditNum="
				+ creditNum + ", bond=" + bond + ", userTypeName="
                + userTypeName + ", status=" + status + ",period="
                + period + ",userRegion=" + userRegion + ",identityCard="
                + identityCard + ",identityCardName=" + identityCardName +
                ",identityCardAddress=" + identityCardAddress + ",headPicture=" +
                headPicture + ",identifyPhotoHead=" + identifyPhotoHead
                + ",registTime=" + registTime + ",livingStatus=" + livingStatus +
                "]";
	}

	public int getMerchant_attribute() {
		return merchant_attribute;
	}
	public void setMerchant_attribute(int merchant_attribute) {
		this.merchant_attribute = merchant_attribute;
	}

	public int getAttribute_status() {
		return attribute_status;
	}
	public void setAttribute_status(int attribute_status) {
		this.attribute_status = attribute_status;
	}
	
	public int getFlag() {
		return flag;
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}

	public String getCityCode() {
		return cityCode;
	}
	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}

	public String getStoreAddress() {
		return storeAddress;
	}
	public void setStoreAddress(String storeAddress) {
		this.storeAddress = storeAddress;
	}

	/**
	 * 签约类型 0：未签约 1：已签约
	 * @author borya
	 *
	 */
	public interface SignAgreement{
	
		/*** 未签约 ***/
		int NOT_SIGN = 0;
		/*** 已签约 ***/
		int ALREADY_SIGN = 1;
	}
	
	/**
	 * 商户状态 -1注销 2黑名单
	 * @author Administrator
	 *
	 */
	public interface Flag{
		int WRITE_OFF = -1;//注销
	}
	/**
	 * 达标状态:1达标,2未达标 standard_status
	 * @author borya
	 *
	 */
	public interface StandardStatus{
		
		/*** 达标 ****/
		int STANDARD = 1;
		/*** 未达标 ***/
		int NOT_STANDARD = 2;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((dealerId == null) ? 0 : dealerId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Merchant other = (Merchant) obj;
		if (dealerId == null) {
			if (other.dealerId != null)
				return false;
		} else if (!dealerId.equals(other.dealerId))
			return false;
		return true;
	}
	public String getBigScopes() {
		return bigScopes;
	}
	public void setBigScopes(String bigScopes) {
		this.bigScopes = bigScopes;
	}
	public String getUserTypeDesc() {
		return userTypeDesc;
	}
	public void setUserTypeDesc(String userTypeDesc) {
		this.userTypeDesc = userTypeDesc;
	}
	public String getSuperDealerId() {
		return superDealerId;
	}
	public void setSuperDealerId(String superDealerId) {
		this.superDealerId = superDealerId;
	}
	public String getSuperDealerName() {
		return superDealerName;
	}
	public void setSuperDealerName(String superDealerName) {
		this.superDealerName = superDealerName;
	}
	public String getBannerIds() {
		return bannerIds;
	}
	public void setBannerIds(String bannerIds) {
		this.bannerIds = bannerIds;
	}

    public long getRegistTime() {
        return registTime;
    }

    public void setRegistTime(long registTime) {
        this.registTime = registTime;
    }
}